<?php 
// 定义应用目录
define('APP_PATH', __DIR__ . '/application/');
//定义配置目录
define('CON_PATH', APP_PATH . '/comm/config/');
// 开启调试模式
define('APP_DEBUG', true);
define('__DIR__Q__', __DIR__);

$url =   'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];

preg_match("/index.php/", $url, $match);

if(!$match){
	$urlp = 'http://'.$_SERVER['HTTP_HOST']."/index.php".$_SERVER['REQUEST_URI'];
	echo "<script language=\"javascript\">";
	echo "location.href=\"$urlp\"";
	echo "</script>";return;
	//header("Location:".$urlp);
}
///die;
//绑定模块
//define('BIND_MODULE', 'index');
// 加载框架引导文件
//require __DIR__ . '/vendor/autoload.php';
require __DIR__ . '/thinkphp/start.php';
?>